import React from 'react';

import { BrowserRouter } from 'react-router-dom';

import App from './App';
// import App from './lian/Router';
import {Provider} from 'mobx-react'
import FirstStore from './store/store'
import TwoStore from './store/twostore'
import NewStore from './store/app2'
import Store513 from './store/store513'
import Store514 from './store/store514'
import Kao from './store/kao'
/*
src下新建文件夹(store
    store里写数据
用的时候在React.js引入
    用多个时,写在对象里,属性:文件,用时调用属性
*/ 
const stores = {
    first: new FirstStore(),
    two:new TwoStore(),
    three:new NewStore(),
    four:new Store513(),
    five:new Store514(),
    kao:new Kao()
    // tow:new FirstStore(),
    // ...
}

console.log(stores)

const Router = () => (
    <BrowserRouter>
        <Provider {...stores}>
            <App />
        </Provider>
    </BrowserRouter>
)
export default Router;